package com.zhouyu.service;

import lombok.ToString;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Component;

@Component
@Scope("prototype")
@ToString
public class ItemService {
	private OrderService orderService;
	private OrderService orderService2;

	public ItemService(){
		System.out.println("order service construct with no param");
	}

	public ItemService(OrderService orderService) {
		System.out.println("order service construct with param");
		this.orderService = orderService;
	}
	public ItemService(OrderService orderService1,OrderService orderService2) {
		System.out.println("order service construct with param");
		this.orderService = orderService1;
		this.orderService2 = orderService2;
	}
}
